package com.liao.service;

import com.liao.bean.News;
import com.liao.bean.result.PageResult;

public interface NewsService {
    /**
     * 根据标题
     * @param currentPage
     * @param pageSize
     * @param newsTitle
     * @return
     */
    PageResult<News> queryNewsListByPage(Integer currentPage, Integer pageSize, String newsTitle) throws Exception;

    /**
     * 添加会员
     * @param news
     * @throws Exception
     */
    void addNews(News news) throws Exception;

    /**
     * 修改会员
     * @param news
     * @throws Exception
     */
    void editNews(News news) throws Exception;

    /**
     * 根据id删除会员
     * @param newsId
     * @throws Exception
     */
    void deleteNews(String newsId) throws Exception;
}
